<?php
defined('IN_IA') or exit('Access Denied');
global $_GPC, $_W;
$uniacid = $_W['uniacid'];
$id = $_GPC['id'];
$do = $_GPC['act'];
$table = "table" . $do;
$list = pdo_fetch("SELECT * FROM " . tablename($this->$table) . " WHERE uniacid = '{$uniacid} ' AND id = '{$id}' ");
if (!empty($list) && $_W['isajax']) {
	$share = $list['share'];
	$share = $share + 1;
	$data = array('share' => $share,);
	pdo_update($this->$table, $data, array('id' => $list['id']));
	exit(json_encode(array('share' => $share, 'id' => $list['id'])));
}